Function Reference

MouseGetCursor

Returns the cursor ID Number for the current Mouse Cursor.

MouseGetCursor ( )

 

Parameters

None.

 

Return Value

Returns a cursor ID Number:
    0 = UNKNOWN (this includes pointing and grabbing hand icons)
    1 = APPSTARTING
    2 = ARROW
    3 = CROSS
    4 = HELP
    5 = IBEAM
    6 = ICON
    7 = NO
    8 = SIZE
    9 = SIZEALL
  10 = SIZENESW
  11 = SIZENS
  12 = SIZENWSE
  13 = SIZEWE
  14 = UPARROW
  15 = WAIT

 

Remarks

None.

 

Related

MouseGetPos

 

Example


sleep(2000)  ;allow time to move mouse before reporting ID

;create an array that tells us the meaning of an ID Number
$IDs = StringSplit("AppStarting|Arrow|Cross|Help|IBeam|Icon|No|" & _
"Size|SizeAll|SizeNESW|SizeNS|SizeNWSE|SizeWE|UpArrow|Wait", "|")
$IDs[0] = "Unknown"

$cursor = MouseGetCursor()
MsgBox(4096, "ID = " & $cursor, "Which means " & $IDs[$cursor])